//============ pengesoft.account.LoginResult =============
import {DataPacket} from 'pengesoft-ng-lib';

export class LoginResult extends DataPacket {
    Msg: string;
    Code: number;
    NickName: string;
    Secret: string;
    UserId: string;
    Token: string;
    Expire: number;
    RemainTry: number;
    Name: string;
    constructor(opts: {
        Msg?: string;
        Code?: number;
        NickName?: string;
        Secret?: string;
        UserId?: string;
        Token?: string;
        Expire?: number;
        RemainTry?: number;
        Name?: string;
    } = {}) {
        super();
        this.Msg = opts.Msg || '';
        this.Code = opts.Code || 0;
        this.NickName = opts.NickName || '';
        this.Secret = opts.Secret || '';
        this.UserId = opts.UserId || '';
        this.Token = opts.Token || '';
        this.Expire = opts.Expire || 0;
        this.RemainTry = opts.RemainTry || 0;
        this.Name = opts.Name || '';
    }
}

